<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
	<jsp:include page="include.jsp"></jsp:include>
	<script type="text/javascript">
		var path = "<%=path%>";
		function getAppFunction() {
			var functionIds = "1,2,3";
			$.ajax({
				url : path + '/v1/appBusiness/funciton/adjust',
				type : "post",
				dataType : "json",
				async : false,
				data : {
					"ownerId": "72eb0a8a-75c9-11e7-85ad-002324d64872",
					"functionIds": functionIds
				},
				success : function(data) {
					console.log(data);
				},
				error : function(data) {
					console.log(data);
				}
			});
		}
		
		function jumpPage(){
			("a").live("click",function(){
				$("#rightContent").empty();
				$("#rightContent").load("test1.jsp");
			});
		}
	</script>
  </head>
  
  <body>
   <!--  <form method="post" action="./v1/appBusiness/complaint/add" enctype="multipart/form-data">
	选择一个文件:
	<input type="file" name="uploadFile" /><br/>
	<input type="text" name="id" value="72eb0a8a-75c9-11e7-85ad-002324d64872"/><br/>
	<input type="text" name="content" value="1234567"/>
	<br/><br/>
	<input type="submit" value="提交"/> 
	</form> -->
	
	<!-- <input type="button" value = "获取app功能列表" onclick = "getAppFunction();"> -->
	
	
		<div id="wrap">
		<div class="leftMeun" id="leftMeun" style="float: left; width: 30%;background: red">
			<div id="logoDiv">
				<p id="logoP">
					<span>菜单导航栏</span><br>
					<a href="javascript:jumpPage();">点击显示另一个页面</a>
				</p>
			</div>
			<div id="tree"></div>
		</div>
		<div id="rightContent" style="float: right; width: 70%;background: blue">
			<div class="tab-content" id="tabContents">
			aad
			</div>
		</div>
	</div>
  </body>
</html>
